package com.jt.demo52.SpringAop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
       ApplicationContext a = new AnnotationConfigApplicationContext(SpringConfig.class);
        UserService bean = a.getBean(UserService.class);
        //bean.hello();
        bean.findName();
    }
}
